package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 取消政策对象 cancellation_policies
 * 
 * @author ruoyi
 * @date 2024-09-25
 */
public class CancellationPolicies extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 政策id */
    private Long id;

    /** 允许取消的时间政策 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "允许取消的时间政策", width = 30, dateFormat = "yyyy-MM-dd")
    private Date can;

    /** 退款百分比 */
    @Excel(name = "退款百分比")
    private Long refundPercent;

    /** 政策详情描 */
    @Excel(name = "政策详情描")
    private String policyDetails;

    /** 取消政策表 */
    @Excel(name = "取消政策表")
    private Long columnName;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCan(Date can) 
    {
        this.can = can;
    }

    public Date getCan() 
    {
        return can;
    }
    public void setRefundPercent(Long refundPercent) 
    {
        this.refundPercent = refundPercent;
    }

    public Long getRefundPercent() 
    {
        return refundPercent;
    }
    public void setPolicyDetails(String policyDetails) 
    {
        this.policyDetails = policyDetails;
    }

    public String getPolicyDetails() 
    {
        return policyDetails;
    }
    public void setColumnName(Long columnName) 
    {
        this.columnName = columnName;
    }

    public Long getColumnName() 
    {
        return columnName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("can", getCan())
            .append("refundPercent", getRefundPercent())
            .append("policyDetails", getPolicyDetails())
            .append("columnName", getColumnName())
            .toString();
    }
}
